package top.rainbowecho.ai.config;

import lombok.Getter;
import lombok.Setter;

import java.time.Duration;


@Getter
@Setter
public class TencentCloudConfiguration {
    /**
     * AI平台应用的appId
     */
    private int appId;

    /**
     * AI平台应用的appKey
     */
    private String appKey;

    private Ability ability = new Ability();

    @Getter
    @Setter
    public static class Ability {
        /**
         * 闲聊功能api接口
         */
        private AbilityItem talk = new AbilityItem("https://api.ai.qq.com/fcgi-bin/nlp/nlp_textchat", Duration.ofSeconds(2));

        /**
         * 图片防暴api接口
         */
        private AbilityItem terrorism = new AbilityItem("https://api.ai.qq.com/fcgi-bin/image/image_terrorism", Duration.ofSeconds(2));

        /**
         * 图片鉴黄api接口
         */
        private AbilityItem porn = new AbilityItem("https://api.ai.qq.com/fcgi-bin/vision/vision_porn", Duration.ofSeconds(2));

        /**
         * 身份证照片识别接口
         */
        private AbilityItem ocr = new AbilityItem("https://api.ai.qq.com/fcgi-bin/ocr/ocr_idcardocr", Duration.ofSeconds(15));

    }
}
